// Mock.js配置调整（在mock.js文件中）
Mock.mock(/\/user\/list/, 'get', (options) => {
  const urlParams = new URLSearchParams(options.url.split('?')[1]);
  const type = urlParams.get('type') || 'fans';
  
  // 根据类型生成不同数据
  if (type === 'fans') {
    return Mock.mock({
      'data|5-10': [{
        'id|+1': 1,
        'username': '@cname',
        'gender|1': ['男', '女'],
        'avatar': Mock.Random.image('100x100'),
        'fans|0-100': 0,
        'isFan': true // 标记为粉丝
      }]
    });
  } else if (type === 'following') {
    return Mock.mock({
      'data|5-10': [{
        'id|+1': 1,
        'username': '@cname',
        'gender|1': ['男', '女'],
        'avatar': Mock.Random.image('100x100'),
        'following|0-50': 0, // 关注数
        'isFollowing': true // 标记为关注
      }]
    });
  }
});